From: Florian Müllner Date: Thu, 11 Jul 2024 17:39:04 +0000 (+0200) Subject: lookingGlass: Include ScrollView in inspector styling X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~226^2^2~38 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=811a4103e4da56177417228092924d381331d36f;p=gnome-shell.git lookingGlass: Include ScrollView in inspector styling All styling currently happens on the ScrollView child, which means that instead of a scrollbar inside the dialog to move the content, we have a scrollbar next to the dialog that moves the dialog as a whole. Fix this by simply moving the style classes to the up-most parent. Part-of: --- diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 987700877..e48306090 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -387,6 +387,8 @@ const ObjInspector = GObject.registerClass( class ObjInspector extends St.ScrollView { _init(lookingGlass) { super._init({ + name: 'LookingGlassPropertyInspector', + style_class: 'lg-dialog', pivot_point: new Graphene.Point({x: 0.5, y: 0.5}), }); @@ -396,8 +398,6 @@ class ObjInspector extends St.ScrollView { this._parentList = []; this._container = new St.BoxLayout({ - name: 'LookingGlassPropertyInspector', - style_class: 'lg-dialog', vertical: true, x_expand: true, y_expand: true,